Conditional Parts of Makefiles

Contents|Index|Previous|Next
Conditional parts of makefiles

A conditional causes part of a makefile to be obeyed or ignored de-pending on the values of variables. Conditionals can compare the value of one variable to another, or the value of a variable to a constant string. Conditionals control what make actually “sees” in the makefile, so they cannot be used to control shell commands at the time of execution.

See the following documentation for more discussion.

- Example of a conditional
- Syntax of conditionals
- Conditionals that test flags

Top|Contents|Index|Previous|Next